<style>
.xqtp{ padding:5px 10px; display:block; float:left}
.xon{ background:#A8D7FD}
</style>
<script>

var xq="";

function szxq(tid,xq2){
  	for (i=0;i<=9;i++) {
		$("#xqtp_"+i).removeClass("xon");
	}
	$("#xqtp_"+tid).addClass("xon");
	
	xq = xq2;
	
}

function qddo(){
	var say = $("#say").val();
	if(xq==""){
		alert("请选择心情");
	}else if(say==""){
		alert("请填写想说的话");
	}else{
		$.post("{:SITE_URL}/index.php?app=home&mod=Widget&act=addonsRequest&addon=V63qiandao&hook=qddo",{"say":say,'xq':xq},function(result){
    			if(result =="签到成功"){
				var	ci = parseInt("{$num}")+parseInt('1');
					$("#qqq1").html("签到"+ci+"次");
					$(".qd2").show();
					$(".qd").hide();
					ui.box.close();
					ui.success("签到成功,增加{$j.shu}{$j.name}"); 
				}else{
					alert(result);
				}
  		});
	}
}
</script>
<table width="591" height="201" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" height="100">&nbsp;</td>
    <td colspan="2">
    <a href="javascript:" id="xqtp_1" class="xqtp" onclick="szxq('1','kx')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/kx.gif" /></a>
    <a href="javascript:" id="xqtp_2" class="xqtp" onclick="szxq('2','ng')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/ng.gif" /></a>
    <a href="javascript:" id="xqtp_3" class="xqtp" onclick="szxq('3','nu')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/nu.gif" /></a>
    <a href="javascript:" id="xqtp_4" class="xqtp" onclick="szxq('4','fd')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/fd.gif" /></a>
    <a href="javascript:" id="xqtp_5" class="xqtp" onclick="szxq('5','ch')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/ch.gif" /></a>
    <a href="javascript:" id="xqtp_6" class="xqtp" onclick="szxq('6','ng')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/ng.gif" /></a>
    <a href="javascript:" id="xqtp_7" class="xqtp" onclick="szxq('7','shuai')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/shuai.gif" /></a>
    <a href="javascript:" id="xqtp_8" class="xqtp" onclick="szxq('8','wl')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/wl.gif" /></a>
    <a href="javascript:" id="xqtp_9" class="xqtp" onclick="szxq('9','ym')"><img src="{:SITE_URL}/addons/plugins/V63qiandao/html/face/ym.gif" /></a>    </td>
  </tr>
  <tr>
    <td height="52">&nbsp;</td>
    <td width="74">想说的话：</td>
    <td width="507" align="left"><input id="say" class="text" type="text" value="" style="width:400px" maxlength="240" name="say" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2" align="right"><input type="submit" value="签到" class="btn_b" onclick="qddo()">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
  </tr>
</table>
